for i in range(20):   # range产生一个集合[0,n)
    print(i, end=" ")
    if i==5:
        break
print(i)